package com.fpx.open.platform.dao.mapper3;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.fpx.open.platform.domain.Customer;

@Repository
public interface CustomerMapper {
    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer customerId);

    /**
     * 需要传入companyCode 和type两个参数，type见Customer常量
     *
     * @param conditionMap
     * @return
     */
    Customer selectByCompanyCodeType(Map<String, String> conditionMap);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);
    
    /**
     * 根据用户ID查对应的客户信息
     * @param strUserId        用户ID
     * @return List<Customer>  客户信息列表
     */
    List<Customer> selectComapnyIdByUserId(String strUserId);
}